#pragma once

#include <vector>

#include <GL\glew.h>
#include <GL\freeglut.h>

#include <glm\glm.hpp>
#include <glm/gtc/matrix_transform.hpp>


class Losa {
public:
	// Crea la losa con un ancho no menor a 9 y un largo no menor a 10
	Losa(float ancho, float largo);
	~Losa();

	void dibujar(const glm::mat4 &viewMatrix, const glm::mat4 &projectionMatrix, const glm::vec4 &light_position, const glm::vec3 &light_intensity, const glm::mat4 &model, GLuint shaderProgramID) const;

private:
    // Losa vertex, normal e index buffer
    GLfloat* losa_vertex_buffer;
    GLfloat* losa_normal_buffer;
    GLuint* losa_index_buffer;

    unsigned int losa_vertex_buffer_size;
    unsigned int losa_normal_buffer_size;
    unsigned int losa_index_buffer_size;

};
